const rspack = require('@rspack/core');
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');

/** @type {import('@rspack/cli').Configuration} */
const config = {
  context: __dirname,
  entry: {
    main: './src/index.js',
  },
  plugins: [
    new NodePolyfillPlugin(),
    new rspack.HtmlRspackPlugin({
      template: './index.html',
    }),
  ],
};
module.exports = config;
